package com.vimi8.ebb.model;

import java.io.Serializable;

/**
 * Created by think on 2016/7/8.
 */

public class SoilTextureEcologys implements Serializable {
    /**
     * id
     */
    private String id;
    /**行政区划id*/
    private String regionId;
    /**经度*/
    private String lng;
    /**纬度*/
    private String  lat;
    /**海拔*/
    private String height;
    /**地貌*/
    private String landform;
    /**有机质含量soil Organic Matter*/
    private String som;
    /**碱解氮含量 Alkali Hydrolyzable Nitrogen*/
    private String ahn;
    /**速效磷含量 Available Phosphorus*/
    private String ap;
    /**速效钾含量 Available Potassium*/
    private String apotassium;
    /**PH值*/
    private String ph;
    /**年降水量 Annual Precipitation*/
    private String precipitation;
    /**年平均气温*/
    private String  temperature;
    /**光照*/
    private String sunlight;
    /**空气湿度*/
    private String atmosphere;
    /**储量*/
    private String reserve;
    /**水质级别*/
    private String rank;
    /**那个村*/
    private String adress;
    /**地址*/
    private String addressCode;

    public String getAddressCode() {
        return addressCode;
    }

    public void setAddressCode(String addressCode) {
        this.addressCode = addressCode;
    }


    //setting & getting


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getRegionId() {
        return regionId;
    }

    public void setRegionId(String regionId) {
        this.regionId = regionId;
    }

    public String getLng() {
        return lng;
    }

    public void setLng(String lng) {
        this.lng = lng;
    }

    public String getLat() {
        return lat;
    }

    public void setLat(String lat) {
        this.lat = lat;
    }

    public String getHeight() {
        return height;
    }

    public void setHeight(String height) {
        this.height = height;
    }

    public String getLandform() {
        return landform;
    }

    public void setLandform(String landform) {
        this.landform = landform;
    }

    public String getSom() {
        return som;
    }

    public void setSom(String som) {
        this.som = som;
    }

    public String getAhn() {
        return ahn;
    }

    public void setAhn(String ahn) {
        this.ahn = ahn;
    }

    public String getAp() {
        return ap;
    }

    public void setAp(String ap) {
        this.ap = ap;
    }

    public String getApotassium() {
        return apotassium;
    }

    public void setApotassium(String apotassium) {
        this.apotassium = apotassium;
    }

    public String getPh() {
        return ph;
    }

    public void setPh(String ph) {
        this.ph = ph;
    }

    public String getPrecipitation() {
        return precipitation;
    }

    public void setPrecipitation(String precipitation) {
        this.precipitation = precipitation;
    }

    public String getTemperature() {
        return temperature;
    }

    public void setTemperature(String temperature) {
        this.temperature = temperature;
    }

    public String getSunlight() {
        return sunlight;
    }

    public void setSunlight(String sunlight) {
        this.sunlight = sunlight;
    }

    public String getAtmosphere() {
        return atmosphere;
    }

    public void setAtmosphere(String atmosphere) {
        this.atmosphere = atmosphere;
    }

    public String getReserve() {
        return reserve;
    }

    public void setReserve(String reserve) {
        this.reserve = reserve;
    }

    public String getRank() {
        return rank;
    }

    public void setRank(String rank) {
        this.rank = rank;
    }

    public String getAdress() {
        return adress;
    }

    public void setAdress(String adress) {
        this.adress = adress;
    }

    /*构造方法*/
    public SoilTextureEcologys() {
    }

    public SoilTextureEcologys(String id, String regionId, String lng, String lat, String height, String landform, String som, String ahn,
                               String ap, String apotassium, String ph, String precipitation, String temperature, String sunlight, String atmosphere,
                               String reserve, String rank, String adress) {
        this.id = id;
        this.regionId = regionId;
        this.lng = lng;
        this.lat = lat;
        this.height = height;
        this.landform = landform;
        this.som = som;
        this.ahn = ahn;
        this.ap = ap;
        this.apotassium = apotassium;
        this.ph = ph;
        this.precipitation = precipitation;
        this.temperature = temperature;
        this.sunlight = sunlight;
        this.atmosphere = atmosphere;
        this.reserve = reserve;
        this.rank = rank;
        this.adress = adress;
    }

    @Override
    public String toString() {
        return "SoilTextureEcologys{" +
                "id='" + id + '\'' +
                ", regionId='" + regionId + '\'' +
                ", lng='" + lng + '\'' +
                ", lat='" + lat + '\'' +
                ", height='" + height + '\'' +
                ", landform='" + landform + '\'' +
                ", som='" + som + '\'' +
                ", ahn='" + ahn + '\'' +
                ", ap='" + ap + '\'' +
                ", apotassium='" + apotassium + '\'' +
                ", ph='" + ph + '\'' +
                ", precipitation='" + precipitation + '\'' +
                ", temperature='" + temperature + '\'' +
                ", sunlight='" + sunlight + '\'' +
                ", atmosphere='" + atmosphere + '\'' +
                ", reserve='" + reserve + '\'' +
                ", rank='" + rank + '\'' +
                ", adress='" + adress + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        SoilTextureEcologys that = (SoilTextureEcologys) o;

        if (id != null ? !id.equals(that.id) : that.id != null) return false;
        if (regionId != null ? !regionId.equals(that.regionId) : that.regionId != null) return false;
        if (lng != null ? !lng.equals(that.lng) : that.lng != null) return false;
        if (lat != null ? !lat.equals(that.lat) : that.lat != null) return false;
        if (height != null ? !height.equals(that.height) : that.height != null) return false;
        if (landform != null ? !landform.equals(that.landform) : that.landform != null) return false;
        if (som != null ? !som.equals(that.som) : that.som != null) return false;
        if (ahn != null ? !ahn.equals(that.ahn) : that.ahn != null) return false;
        if (ap != null ? !ap.equals(that.ap) : that.ap != null) return false;
        if (apotassium != null ? !apotassium.equals(that.apotassium) : that.apotassium != null) return false;
        if (ph != null ? !ph.equals(that.ph) : that.ph != null) return false;
        if (precipitation != null ? !precipitation.equals(that.precipitation) : that.precipitation != null)
            return false;
        if (temperature != null ? !temperature.equals(that.temperature) : that.temperature != null) return false;
        if (sunlight != null ? !sunlight.equals(that.sunlight) : that.sunlight != null) return false;
        if (atmosphere != null ? !atmosphere.equals(that.atmosphere) : that.atmosphere != null) return false;
        if (reserve != null ? !reserve.equals(that.reserve) : that.reserve != null) return false;
        if (rank != null ? !rank.equals(that.rank) : that.rank != null) return false;
        return adress != null ? adress.equals(that.adress) : that.adress == null;

    }

    @Override
    public int hashCode() {
        int result = id != null ? id.hashCode() : 0;
        result = 31 * result + (regionId != null ? regionId.hashCode() : 0);
        result = 31 * result + (lng != null ? lng.hashCode() : 0);
        result = 31 * result + (lat != null ? lat.hashCode() : 0);
        result = 31 * result + (height != null ? height.hashCode() : 0);
        result = 31 * result + (landform != null ? landform.hashCode() : 0);
        result = 31 * result + (som != null ? som.hashCode() : 0);
        result = 31 * result + (ahn != null ? ahn.hashCode() : 0);
        result = 31 * result + (ap != null ? ap.hashCode() : 0);
        result = 31 * result + (apotassium != null ? apotassium.hashCode() : 0);
        result = 31 * result + (ph != null ? ph.hashCode() : 0);
        result = 31 * result + (precipitation != null ? precipitation.hashCode() : 0);
        result = 31 * result + (temperature != null ? temperature.hashCode() : 0);
        result = 31 * result + (sunlight != null ? sunlight.hashCode() : 0);
        result = 31 * result + (atmosphere != null ? atmosphere.hashCode() : 0);
        result = 31 * result + (reserve != null ? reserve.hashCode() : 0);
        result = 31 * result + (rank != null ? rank.hashCode() : 0);
        result = 31 * result + (adress != null ? adress.hashCode() : 0);
        return result;
    }
}
